XX = g++
CFLAGS = -Wall -std=c++11
LIB = test.a
LIB_PATH = ./
INC_PATH = ../include
LDFLAGS = `pkg-config --cflags`
SRCS = $(wildcard *.cpp)
TARGETS = $(patsubst %.cpp, %, $(SRCS))
all:$(TARGETS)
$(TARGETS):$(SRCS)
	$(CXX) -I $(INC_PATH) -o $@ $< $(LDFLAGS) -L $(LIB_PATH) $(LIB) $(CFLAGS)
clean:
	-rm -rf $(TARGETS) *~ .*swp
.PHONY: clean all

